const ResizeImages = require('../utils/ResizeImages');

// 处理图片缩放请求
const resizeImagesFn = async (event, config, mainWindow) => {
  try {
    const resizeImages = new ResizeImages(config, mainWindow);
    return await resizeImages.process();
  } catch (error) {
    console.error('图片缩放处理错误:', error);
    throw error;
  }
};

module.exports = { resizeImagesFn };